package com.rmb.service.impl;

import com.rmb.mapper.BalanceMapper;
import com.rmb.mart.entity.userinfo.UserInfo;
import com.rmb.service.BalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName BalanceServiceImpl
 * @Description TODO
 * @Author lvshook
 * @Date 2021/1/21 11:39
 * @Version 1.0
 **/
@Service
public class BalanceServiceImpl implements BalanceService {

    @Autowired(required = false)
    private BalanceMapper balanceMapper;

    /**
     * 根据id查询单条数据
     * @param id 主键
     * @return
     */
    @Override
    public UserInfo queryById(Long id) {
        return balanceMapper.queryById(id);
    }
}
